public interface EYIBCConstants {
	
	public final int XENGINE_MGMT_PORT		= 9080;
	
	public final int CREDENTIAL_DECRYPT		= 0x01;
	public final int CREDENTIAL_SIGN		= 0x02;
	
	public final int MKEY_PROTECT_MODE_PASSWORD		= 1;
	public final int MKEY_PROTECT_MODE_PKC			= 2;
	
	public final int ALG_IBC						= 0x20000000;
	public final int MASK_ALG_CATEGORY				= 0xF0000000;
	public final int ALG_OTHERS						= 0xF0000000;
	
	public final int ALG_HASH_SHA1					= 0x00000080;
	
	public final int GM_ID_SCHEMA_ENYOUNG			= 0;
	public final int GM_ID_SCHEMA_ECSCHEMA			= 1;
	public final int GM_ID_SCHEMA_CHNSCHEMA			= 2;
	public final int GM_ID_SCHEMA_RFC822			= 3;
	
	public final int TYPE1CURVE						= 1;
	public final int TYPE2CURVE						= 2;
	public final int TYPE3CURVE						= 3;
	public final int TYPE4CURVE						= 4;
	public final int TYPE5CURVE						= 5;
	public final int TYPE6CURVE						= 6;
	public final int TYPE7CURVE						= 7;
	public final int TYPE8CURVE						= 8;
	
	public final int ALG_KGA_SOK					= 0x02000000;
	public final int ALG_KGA_SK						= 0x04000000;
	public final int ALG_KGA_BB1					= 0x06000000;
	public final int ALG_KGA_CHN					= 0x08000000;
	public final int MASK_ALG_KGA					= 0x0E000000;
	
	public final int ALG_IBC_KGA_SOK				= ALG_IBC | ALG_KGA_SOK;
	public final int ALG_IBC_KGA_SK					= ALG_IBC | ALG_KGA_SK;
	public final int ALG_IBC_KGA_BB1				= ALG_IBC | ALG_KGA_BB1;
	public final int ALG_IBC_KGA_CHN				= ALG_IBC | ALG_KGA_CHN;
	public final int MASK_ALG_IBC_KGA_CTG			= MASK_ALG_CATEGORY | MASK_ALG_KGA;
	
	public final int ALG_EMB1						= 0x00000000;
	public final int ALG_EMB2						= 0x01000000;
	public final int MASK_ALG_EMB					= 0x01000000;
	
	public final int ALG_EMB_EMB1					= ALG_OTHERS | ALG_EMB1;
	public final int ALG_EMB_EMB2					= ALG_OTHERS | ALG_EMB2;
	public final int MASK_ALG_EMB_CTG				= MASK_ALG_CATEGORY | MASK_ALG_EMB;
	
	public final int ALG_HASH2RANGE1				= 0x00000000;
	public final int ALG_HASH2RANGE2				= 0x00400000;
	public final int ALG_HASH2RANGE3				= 0x00800000;
	public final int ALG_HASH2RANGE4				= 0x00C00000;
	public final int MASK_ALG_HASH2RANGE			= 0x00C00000;
	
	public final int ALG_HASH2RANGE_H2R2			= ALG_OTHERS | ALG_HASH2RANGE2;
	public final int ALG_HASH2RANGE_H2R3			= ALG_OTHERS | ALG_HASH2RANGE3;
	public final int ALG_HASH2RANGE_H2R4			= ALG_OTHERS | ALG_HASH2RANGE4;
	public final int MASK_ALG_HASH2RANGE_CTG		= MASK_ALG_CATEGORY | MASK_ALG_HASH2RANGE;
	
	public final int ALG_IBC_KGA_SOK_EMB1_H2R2		= ALG_IBC_KGA_SOK | ALG_EMB1 | ALG_HASH2RANGE2;
	public final int ALG_IBC_KGA_SK_H2R2			= ALG_IBC_KGA_SK | ALG_HASH2RANGE2;
	public final int ALG_IBC_KGA_CHN_H2R3			= ALG_IBC_KGA_CHN | ALG_HASH2RANGE3;
	public final int MASK_ALG_IBC_KGA_EMB			= MASK_ALG_IBC_KGA_CTG | MASK_ALG_EMB | MASK_ALG_HASH2RANGE;
	
	public final int ALG_IBC_KGA_SOK_EMB1_H2R2_SHA1	= ALG_IBC_KGA_SOK_EMB1_H2R2 | ALG_HASH_SHA1;
	public final int ALG_IBC_KGA_SK_H2R2_SHA1		= ALG_IBC_KGA_SK_H2R2 | ALG_HASH_SHA1;
	public final int ALG_IBC_KGA_CHN_H2R3_SHA1		= ALG_IBC_KGA_CHN_H2R3 | ALG_HASH_SHA1;
	
	public final int CHAP_FLAG_INCLUDE_RAND			= 0x01; 
	public final int CHAP_FLAG_CERT_VERIFY			= 0x02;
	public final int CHAP_FLAG_IBC_VTIME			= 0x04;
	public final int CHAP_FLAG_IBC_PROTOTECTED		= 0x08;
	public final int CHAP_FLAG_IBC_ENCODEDID		= 0x10;
	public final int CHAP_FLAG_IBC_KEYUSAGE			= 0x20;
	public final int CHAP_FLAG_IBC_VSEQ				= 0x40;
	public final int CHAP_FLAG_IBC_VTIME_BOTH		= 0x80;	//Not After and Not Before
	public final int CHAP_FLAG_IBC_EXP_NOCHECK		= 0x0100;

	public final int CHAPPROVER_ATTR_ALGTYPE		= 1;
	public final int CHAPPROVER_ATTR_SIGNATURE		= 2;
	public final int CHAPPROVER_ATTR_CERT			= 3;
	public final int CHAPPROVER_ATTR_CERT_INS		= 4;
	public final int CHAPPROVER_ATTR_CERT_SUBJECT	= 5;
	public final int CHAPPROVER_ATTR_CERT_CNAME		= 6;
	public final int CHAPPROVER_ATTR_CERT_EMAIL		= 7;
	public final int CHAPPROVER_ATTR_IBC_DNS		= 8;
	public final int CHAPPROVER_ATTR_IBC_ID			= 9;
	public final int CHAPPROVER_ATTR_CHALLENGE		= 10;
	public final int CHAPPROVER_ATTR_IBC_VTIME		= 11;
	public final int CHAPPROVER_ATTR_IBC_KEYUSAGE	= 12;
	public final int CHAPPROVER_ATTR_CERT_ATTR_VALIDSTART	= 13;
	public final int CHAPPROVER_ATTR_CERT_ATTR_VALIDEND	= 14;
}
